﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

using SimpleText.Framework;

public partial class LanguageVersioningPage : SimpleTextPage
{
	protected System.IO.FileInfo XmlFileInfo = null;
	
  protected void Page_Load(object sender, EventArgs e)
  {
		InitPage();

		if (CurrentModel == null)
		{
			Response.Redirect("projects.aspx?msg=noprojectselected");
		}

		XmlFileInfo = new System.IO.FileInfo(CurrentModel.LoadedFromXmlFilePath);
	}

	protected int GetTotalDefinitionCount(LanguageVersioningModel model)
	{
		int totalCount = model.TextDefinitions.Count;

		return totalCount;
	}
}
